#include "Stdafx.h"

using namespace IceCore;

udword IceCore::Alignment(udword address)
{
	if (!address)
		return 0;
		
	udword Align = 1;
	for (udword i = 1; i < 32; i++)
	{
		if (address & Align)
			return Align;
		Align <<= 1;
	}
	
	return Align;
}
